<%= error_messages_for 'user' -%>
<% if flash[:notice]  -%>
  <div class="sysmsg">
    <%= flash[:notice] -%>
    <% errors -%>
  </div>
  <% flash[:notice] = nil -%>
<% end -%>

<div id="sign-up" class="ui-roundedbox">
  <div class="ui-roundedbox-corner ui-roundedbox-tl">
    <div class="ui-roundedbox-corner ui-roundedbox-tr">
      <div class="ui-roundedbox-corner ui-roundedbox-bl">
        <div class="ui-roundedbox-corner ui-roundedbox-br">
          <div class="ui-roundedbox-content">
            <h2>Sign Up for Microblog</h2>
            <% form_for :user, :url => {:action => "signup"},
                :html => {:method => "post", :class => "nf lf"}  do |form| -%>
              <p>
                <label for="user_name" class="label_input">Name: </label>
                <%= form.text_field :name, :size => 40 -%>
                <span class="hint">Use 4~16 alphabets, numbers , dot, dash, and underscore.</span>
              </p>
              <p>
                <label for="user_email" class="label_input">Email: </label>
                <%= form.text_field :email, :size => 40 -%>
                <span class="hint">Your email will NOT be given to spammers.
                Don't worry. :) </span>
              </p>
              <p>
                <label for="user_password" class="label_input">Password: </label>
                <%= form.password_field :password, :size => 40 -%>
                <span class="hint">For better security,
                  choose a password over 6 characters.</span>
              </p>
              <p>
                <label for="user_password_confirmation"
                  class="label_input">Repeat Password: </label>
                <%= form.password_field :password_confirmation, :size => 40 -%>
                <span class="hint">Repeat your password to prevent mistype.</span>
              </p>
              <p class="act">
                <%= submit_tag "Sign Up", :class => "formbutton" -%>
              </p>
            <% end -%>
            <div id="sign-bottom">
              <p>
                Already have a Microblog account?
                <%= link_to("Login Here", :controller => :login, :action => :index) -%>!
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>